package com.miao.service;

import com.miao.pojo.MediaProcess;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2024-02-03
 */
public interface IMediaProcessService extends IService<MediaProcess> {
    //根据当前分片获取需要进行格式转化的视频
    public List<MediaProcess> getWaitTransList(int sharedTotal, int sharedIndex, int count);
    //开启任务，抢锁
    public int startTask(Long id);
    //更新任务结果
    public void saveProcessFinish(Long taskId, String status, String fileID, String errorMsg, String url);
}
